package com.yc.vote.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2022-07-03
 */
public class Items implements Serializable {

    private static final long serialVersionUID = 1L;

    // 非表字段, 计算列
    private int itemCount;  // 所有选项投票的总数
    private int commitSum;   // 当前选项投票总数
    public int getItemCount() {
        return itemCount;
    }
    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }
    public int getCommitSum() {
        return commitSum;
    }
    public void setCommitSum(int commitSum) {
        this.commitSum = commitSum;
    }

    @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String iname;

    private Integer vid;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getIname() {
        return iname;
    }

      public void setIname(String iname) {
          this.iname = iname;
      }
    
    public Integer getVid() {
        return vid;
    }

      public void setVid(Integer vid) {
          this.vid = vid;
      }

    @Override
    public String toString() {
        return "Items{" +
              "id=" + id +
                  ", iname=" + iname +
                  ", vid=" + vid +
              "}";
    }
}
